/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class IntegratedStove {
    static categoryCode = '010050026';

    static categoryName = '集成灶';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return IntegratedStove.categoryCode;
    }

    get categoryName() {
        return IntegratedStove.categoryName;
    }

    getAirFlowVolume(params) {
        return command({
            method: 'getAirFlowVolume',
            methodId: 'p3deZIbZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getBurningTime(params) {
        return command({
            method: 'getBurningTime',
            methodId: 'pDrhgJ2U',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getClean(params) {
        return command({
            method: 'getClean',
            methodId: 'pdN7VYWd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGear(params) {
        return command({
            method: 'getGear',
            methodId: 'ptRSxcMr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'p1vZQTuw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSpeed(params) {
        return command({
            method: 'getSpeed',
            methodId: 'phEqY8tA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pgh0u2iC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWindPressure(params) {
        return command({
            method: 'getWindPressure',
            methodId: 'pkpDAELL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBurningTime(params) {
        return command({
            method: 'setBurningTime',
            methodId: 'peH3bdEK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setClean(params) {
        return command({
            method: 'setClean',
            methodId: 'ppAX3Z1l',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGear(params) {
        return command({
            method: 'setGear',
            methodId: 'pGoxpNQP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSpeed(params) {
        return command({
            method: 'setSpeed',
            methodId: 'pZgRrSrm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQLL35',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default IntegratedStove;
